package com.zhku.shoppingspringboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhku.shoppingspringboot.common.R;
import com.zhku.shoppingspringboot.pojo.dto.SubmitOrderDTO;
import com.zhku.shoppingspringboot.pojo.entity.Orders;
import com.zhku.shoppingspringboot.pojo.vo.order.CreateOrdersVO;
import com.zhku.shoppingspringboot.pojo.vo.SubmitOrderVO;
import com.zhku.shoppingspringboot.pojo.vo.order.OrderDetailVO;
import com.zhku.shoppingspringboot.pojo.vo.order.OrdersStaticVO;

import java.util.List;

/**
 * @author hwy
 * @date 2025-01-02 11:08
 */
public interface IOrdersService extends IService<Orders> {
    /**
     * 生成订单
     * @return
     */
    CreateOrdersVO createOrder();

    /**
     * 提交订单
     * @param submitOrderDTO
     * @return
     */
    SubmitOrderVO submitOrder(SubmitOrderDTO submitOrderDTO);

    /**
     * 获取订单
     * @param id
     * @return
     */
    List<OrderDetailVO> getOrder();

    R<String> deleteOrder(List<Long> ids);

    List<OrderDetailVO> getAllOrder();

    R<String> sendOrder(Long id);

    R<String> Comment(Long id, String comment);

    R<String> correctOrder(Long id);

    OrdersStaticVO OrderStatic();

}
